CREATE TABLE [dbo].[TDFECH_PAPR]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[FE_PAGO] [dbo].[TD_DT_001] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDFECH_PA__CO_US__43C1049E] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDFECH_PA__FE_US__44B528D7] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDFECH_PA__CO_US__45A94D10] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDFECH_PA__FE_US__469D7149] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDFECH_PAPR] ADD CONSTRAINT [PK__TDFECH_P__1F31D3E25D41AAD6] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [FE_PAGO]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDFECH_PAPR] ADD CONSTRAINT [FK__TDFECH_PA__CO_EM__4CF63474] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
